From 2abed01bf44e03dac3083e382d8c869ab3c19eb8 Mon Sep 17 00:00:00 2001 From: Don Slutz Date: Mon, 22 Jun 2015 11:40:28 +0200 Subject: [PATCH] gdbsx_guestmemio: allow it to check domain gdbsx_guest_mem_io() does not get d passed, it expects to handle the domain lookup itself. Specifically, the caller of XEN_DOMCTL_gdbsx_guestmemio is expected to use DOMID_IDLE to interact with the hypervisor, rather than a domain, which doesn't interact well with with the domain rcu lock. Signed-off-by: Don Slutz Reviewed-by: Andrew Cooper --- xen/common/domctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/common/domctl.c b/xen/common/domctl.c index ce517a76be..2a2d20398d 100644 --- a/xen/common/domctl.c +++ b/xen/common/domctl.c @@ -443,6 +443,7 @@ long do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl) case XEN_DOMCTL_createdomain: case XEN_DOMCTL_getdomaininfo: case XEN_DOMCTL_test_assign_device: + case XEN_DOMCTL_gdbsx_guestmemio: d = NULL; break; default: -- 2.30.2